import requestApi from 'src/erm/sscrppublic/common/components/requestApi'

import { ajax } from 'nc-lightapp-front'

const requestDomain = ''

const requestApiOverwrite = {
  ...requestApi,

  doReimbursement: (prams) => {
    ajax({
      url: `${requestDomain}/nccloud/erm/expenseaccount/ExpenseaccountInvoiceToBxbodyAction.do`,
      data: prams.data,
      success: (data) => {
        data = data.data
        prams.success(data)
      }
    })
  },

  saveToWallet: (prams) => {
    ajax({
      url: `${requestDomain}/nccloud/erm/expenseaccount/ExpenseaccountInvoiceSaveAction.do`,
      data: prams.data,
      success: (data) => {
        prams.success(data.data)
      }
    })
  }
}

export default requestApiOverwrite
